SetDeviceMetricsOverrideRequest
data class SetDeviceMetricsOverrideRequest(width: Int, height: Int, deviceScaleFactor: Double, mobile: Boolean, scale: Double?, screenWidth: Int?, screenHeight: Int?, positionX: Int?, positionY: Int?, dontSetVisibleSize: Boolean?, screenOrientation: ScreenOrientation?, viewport: Viewport?)
Content copied to clipboard
Represents request frame that can be used with Page#setDeviceMetricsOverride operation call.
Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results).
See also
Constructors
SetDeviceMetricsOverrideRequest
Link copied to clipboard
fun SetDeviceMetricsOverrideRequest(width: Int, height: Int, deviceScaleFactor: Double, mobile: Boolean, scale: Double? = null, screenWidth: Int? = null, screenHeight: Int? = null, positionX: Int? = null, positionY: Int? = null, dontSetVisibleSize: Boolean? = null, screenOrientation: ScreenOrientation? = null, viewport: Viewport? = null)
Content copied to clipboard
Properties
deviceScaleFactor
Link copied to clipboard
dontSetVisibleSize
Link copied to clipboard
screenHeight
Link copied to clipboard
screenOrientation
Link copied to clipboard
screenWidth
Link copied to clipboard